package com.huilian.iotbox.admin.dao;

import com.huilian.iotbox.data.po.StatsMerchant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 谢洛涛
 * @date 2021/9/28 11:44
 */
@Mapper
public interface StatsMerchantDao {
    List<StatsMerchant> statsMerchant(String startTime, String endTime);

    Integer insert(StatsMerchant statsMerchant);

    List<StatsMerchant> findStatsMerchantList(String dateStr);

    List<StatsMerchant> statsMerchantByActivity(String startTime, String endTime);

    StatsMerchant findStatsMerchantByMchId(@Param("merchantId") String merchantId, @Param("yesterday")String yesterday);

    Integer update(StatsMerchant item);

    List<StatsMerchant> findAllStatsMerchant(String yesterday);

    void batchUpdate(@Param("list") List<StatsMerchant> list);

    List<StatsMerchant> statsSplittingMerchant(String startTime, String endTime);
}
